import helloWorld from './hello'
helloWorld()

//resource
import imgUrl from './assets/resource.png'
const img = document.createElement('img')
console.log(imgUrl)
img.src = imgUrl
document.body.appendChild(img)

//inline
import img2Url from './assets/inline.jpg'
const img2 = document.createElement('img')
img2.style.cssText = 'width:50px;height:50px;'
img2.src = img2Url
document.body.appendChild(img2)

//source
import textUrl from './assets/index.txt'
const div = document.createElement('div')
console.log('text',textUrl,)
div.style.cssText = 'width:50px;height:50px;background:red;'
console.log(div.textContent)
div.innerText = textUrl
document.body.appendChild(div)

//asset 
import jfif from './assets/asset.jpeg'
const img3  = document.createElement('img')
img3.style.cssText = 'width:100px;height:100px;background:blue;display:block;'
img3.src = jfif
document.body.appendChild(img3)